package com.as.db.dao;

public class FactoryDAO {
	
	private static FactoryDAO factory = null;
	
	private FactoryDAO() {

	}
	
	public static FactoryDAO getInstance() {
		if (factory == null) {
			factory = new FactoryDAO();
		}
		
		return factory;
	}
	
	public <T> IGenericDAO<T> getGenericDAO(Class miclase) {
		IGenericDAO<T> dao = new GenericDAO(miclase);
		return dao;
	}
}
